<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    protected function _initSessionStart(){        
        Zend_Session::start();
    }
    protected function _initTimezone()
    {
        date_default_timezone_set('America/Bogota');
    }
    protected function _initAutoloader() {
        $moduleLoader = new Zend_Application_Module_Autoloader(array('namespace' => '', 'basePath' => APPLICATION_PATH));
        return $moduleLoader;
    }

    protected function _initViewHelpers()
    {
        $this->bootstrap("view");
        $view = $this->getResource('view');        
        $view->addHelperPath('My/View/Helper','My_View_Helper');
    }
    protected function _initMyDb() {
        $this->bootstrap('db');
        $resource = $this->getPluginResource('db');
        $db = $resource->getDbAdapter();
        $db->query('SET CHARACTER SET \'UTF8\'');
        Zend_Registry::set('db', $db);
    }

}

